
# 病人信息管理路由
from PatientInfo import views
from django.urls import path
urlpatterns = [
  
    path('', views.index, name="myapp_patientinfo_index"),  # 浏览
    path('search', views.search, name="myapp_patientinfo_search"),# 查询
    path('add', views.add, name="myapp_patientinfo_add"),  # 添加表单
    path('insert', views.insert, name="myapp_patientinfo_insert"),  # 执行添加
    path("delete/<slug:nid>", views.delete, name="myapp_patientinfo_delete"),  # 执行删除
    path('edit/<slug:hspid>', views.edit, name="myapp_patientinfo_edit"),  # 加载编辑表单
    path('update', views.update, name="myapp_patientinfo_update"),  # 执行编辑
]